package cc.yaomm.common.biz.enums;

import cc.yaomm.common.basic.base.SuperEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * Created by XQL on 2021/6/9.
 */
@Getter
public enum OwnerTypeEnum implements SuperEnum<OwnerTypeEnum, Integer> {

    /**
     * 业务系统
     */
    BIZ(1, "业务系统"),
    /**
     * 商家
     */
    SHOP(2, "商家"),
    /**
     * 集团账号
     */
    GROUP(3, "集团账号");

    @EnumValue
    private Integer value;

    private String name;

    OwnerTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public OwnerTypeEnum[] enums() {
        return values();
    }
}
